Skip to content

sandbox allowed domains#712

Open
kcoopermiller wants to merge 2 commits into
mainfrom
feature/allowed-domains
Open

sandbox allowed domains#712
kcoopermiller wants to merge 2 commits into
mainfrom
feature/allowed-domains

Conversation

@kcoopermiller

@kcoopermiller kcoopermiller commented Jun 4, 2026

Copy link
Copy Markdown
Member

Note

Medium Risk
Changes sandbox network egress configuration at create time; misconfigured domain lists could block required outbound access, though rules are validated client-side and in the SDK.

Overview
Adds egress domain controls for container sandboxes via allowed_domains and blocked_domains on the SDK Sandbox / CreateSandboxRequest models (API aliases allowedDomains / blockedDomains).

allowed_domains is an egress allowlist for restricted sandboxes: it only applies when network_access is false and is not supported on VM sandboxes. blocked_domains is an egress blocklist for open sandboxes: it requires network_access true and is also VM-incompatible. Pydantic validators enforce these rules on create.

The prime sandbox create command gains repeatable --allowed-domain and --blocked-domain (wildcards like *.example.com documented in help), with matching CLI checks before the API call. prime sandbox get and the create confirmation summary show the lists when present.

Reviewed by Cursor Bugbot for commit 21f84fd. Bugbot is set up for automated code reviews on this repo. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant